package com.superteam.zzl.viewmodel;

import com.superteam.zzl.model.ModelTest;

/**
 * Created by zhang on 2017/1/5.
 */

/**
 * MVVM VM实体类测试,与Model中的实体绑定*********************************************************************
 */
public class ModelTestVM {
    private ModelTest modelTest;

    public ModelTestVM() {
        modelTest = new ModelTest(1,"测试");
    }

    public int getId(){
        return modelTest.id;
    }

    public String getName(){
        return modelTest.name;
    }
}

/*********************************************************************************/
